// shop.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
      // markers: [{
      //   latitude: 23.12252,
      //   longitude: 113.39790,
      //   iconPath: '../../../img/address.png',
      //   width: 20,
      //   height: 20
      // }]
      i:2,
      cons:[
        {
          url:'../../img/con01.png',
          show:'这才叫婚纱，你那顶多叫合影',
          newPrice: 3999,
          oldPrice: 4999,
          Num: 1235
        },
        {
          url: '../../img/con01.png',
          show: '这才叫婚纱，你那顶多叫合影',
          newPrice: 3999,
          oldPrice: 4999,
          Num: 1235
        },
        {
          url: '../../img/con01.png',
          show: '这才叫婚纱，你那顶多叫合影',
          newPrice: 3999,
          oldPrice: 4999,
          Num: 1235
        }
      ],
      btns:[
        {
          icon:'icon-dianhua',
          con:'电话咨询'
        },{
          icon:'icon-zixun',
          con:'私信商家'
        }, {
          icon: 'icon-yuyue',
          con: '预约看店'
        }
      ]
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {

    },

    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function() {

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function() {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function() {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function() {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function() {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function() {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function() {

    },
    show() {
        wx.openLocation({
            latitude: 23.12252,
            longitude: 113.39790,
            name: 'Sultan',
            success: function(res) {
                console.log(res)
            },
        })
    },
    shopDetail() {
      wx.navigateTo({
        url: 'shopIntroduction/shopIntroduction',
      })
    },
    caseAppreciation(){
      wx.navigateTo({
        url: 'caseAppreciation/caseAppreciation',
      })
    },
    caseAppreciationDetail(){
      wx.navigateTo({
        url: 'caseAppreciationDetail/caseAppreciationDetail',
      })
    },
    highQualityGoodsPackage(){
      wx.navigateTo({
        url: '../highQualityGoodsPackage/highQualityGoodsPackage',
      })
    },
    packageDetails(){
      wx.navigateTo({
        url: '../highQualityGoodsPackage/packageDetails/packageDetails',
      })
    },
    btns(e){
      console.log(e);
      this.setData({
        i:e.currentTarget.dataset.index
      })
    }
})